<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php print $language->language ?>" lang="<?php print $language->language ?>" dir="<?php print $language->dir ?>">
  <head>
    
    <title><?php print $head_title; ?></title>
    <?php print $head; ?>
    <?php print $styles; ?>
    <?php //print $base_path . path_to_theme() ?>
    <?php print $scripts; ?>
  </head>

<body class="<?php print $body_classes; ?>">
    <div id="skip"><a href="#content"><?php print t('Skip to Content'); ?></a> <a href="#navigation"><?php print t('Skip to Navigation'); ?></a></div>  
    <div id="page">

    <!-- ______________________ HEADER _______________________ -->

    <div id="header">

      <div id="logo">
        <?php if (!empty($logo)): ?>
          <a href="<?php print $front_page; ?>" title="<?php print t('Home'); ?>" rel="home" id="logo"><?php print $site_name; ?></a>
        <?php endif; ?>
      </div> <!-- /logo -->
      
      <?php if ($hdsearch): ?>
        <div id="hdsearch">
          <?php print $hdsearch; ?>
        </div>
    	<?php endif; ?>

      <div id="nav">
        <?php if (!empty($primary_links)){ print theme('links', $primary_links, array('id' => 'navigation', 'class' => 'main-menu clearfix')); } ?>
      </div>
      
      <div id="login"> 
        <?php if (!$uid) { ?>
          <a href="<?php print $base_path; ?>user/register" class="login-dangky">Đăng ký</a>
          <a href="<?php print $base_path; ?>user/login" class="login-dangnhap">Đăng nhập</a>
          <div id="dangnhap"><?php print $userlogin; ?></div>
        <?php } else { ?>
          <a href="<?php print $base_path; ?>user/<?php print $uid; ?>" class="login-taikhoan">Tài khoản</a>
        <?php }?>
      </div>

    </div> <!-- /header -->

  <div id="spotlight">
  	<h2>A new way to fund &amp; follow creativity</h2>
  	<a href="/san-pham" class="spl-xemsp">Xem sản phẩm</a>
    <?php if (!$uid) { ?>
    	<a href="<?php print $base_path; ?>user/login" class="spl-themsp">Thêm sản phẩm</a>
		<?php } else { ?>
    	<a href="<?php print $base_path; ?>node/add/app" class="spl-themsp">Thêm sản phẩm</a>
    <?php }?>
  </div>

    <!-- ______________________ MAIN _______________________ -->

    <div id="main" class="clearfix">
    
      <div id="content">
      
          <?php if ($content_top): ?>
            <div id="content-top">
              <?php print $content_top; ?>
            </div> <!-- /#content-top -->
          <?php endif; ?>

      </div> <!-- /content -->

			<?php if ($sidebar): ?>
        <div id="sidebar">
            <?php print $sidebar; ?>
        </div>
      <?php endif; ?> <!-- /sidebar-second -->

    </div> <!-- /main -->

    <div id="bottom" class="clearfix">
      <div class="newsletter">
        <?php print $newsletter; ?>
      </div>
      <div class="fb">
      
      </div>
    </div>
      <!-- ______________________ FOOTER _______________________ -->

    <div id="footer">
      &copy; Copyright 2011, Push Startup.
    </div> <!-- /footer -->	

  </div> <!-- /page -->
    <?php print $closure; ?>
</body>
</html>